package com.ruoyi.bookkeeping.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 收支对象 book_asset
 * 
 * @author ruoyi
 * @date 2023-02-24
 */
@Data
@ApiModel("收支对象")
public class BookAsset
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("收入明细id")
    @TableId(type = IdType.AUTO)
    private Long assetId;

    @ApiModelProperty("用户id")
    @Excel(name = "用户id")
    private Long userId;

    @ApiModelProperty("分类id")
    @Excel(name = "分类id")
    private Long sortId;

    @ApiModelProperty("收入类型 （0支出，1收入）")
    @Excel(name = "收入类型 ", readConverterExp = "0=支出，1收入")
    private String assetType;

    @ApiModelProperty("账单类型 （0支付宝，1微信，2银行卡）")
    @Excel(name = "账单类型 ", readConverterExp = "0=支付宝，1微信，2银行卡")
    private String billingType;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("删除标志（0代表存在 2代表删除）")
    @TableLogic(value = "0",delval = "2")
    private String delFlag;

    @Excel(name = "金额")
    @ApiModelProperty("金额")
    private Double amount;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新者")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("备注")
    private String remark;



}
